﻿@ModelType IEnumerable(Of V_INFO_RESPONSABLE_DEL_ALUMNO)
@For Each Responsable In Model
    If Responsable.FALLECIDO.Equals("Sí") Then
        @Html.TableFields(String.Format("Responsable ({0}) - <i>Fallecido(a)</i>", Responsable.PARENTESCO)
            ).AddFieldFor(Function(f) Responsable.NOMBRES, New JFOptionsFields().SetIsEdit(True)
            ).AddFieldFor(Function(f) Responsable.APELLIDOS, New JFOptionsFields().SetIsEdit(True)
        ).SetHTMLAttributes(New With {.Style = "margin-bottom: 15px;"})   
Else
        @Html.TableFields(String.Format("Responsable ({0})", Responsable.PARENTESCO)
            ).AddFieldFor(Function(f) Responsable.IS_RESPONSABLE, New JFOptionsFields().SetIsEdit(True)
            ).AddFieldFor(Function(f) Responsable.NOMBRES, New JFOptionsFields().SetIsEdit(True)
            ).AddFieldFor(Function(f) Responsable.APELLIDOS, New JFOptionsFields().SetIsEdit(True)
            ).AddFieldFor(Function(f) Responsable.DUI, New JFOptionsFields().SetIsEdit(True)
            ).AddFieldFor(Function(f) Responsable.TELEFONO, New JFOptionsFields().SetIsEdit(True)
            ).AddFieldFor(Function(f) Responsable.CORREO_ELECTRONICO, New JFOptionsFields().SetIsEdit(True)
            ).AddFieldFor(Function(f) Responsable.PROFESION, New JFOptionsFields().SetIsEdit(True)
            ).AddFieldFor(Function(f) Responsable.LUGAR_TRABAJO, New JFOptionsFields().SetIsEdit(True)
            ).AddFieldFor(Function(f) Responsable.DIRECCION_TRABAJO, New JFOptionsFields().SetIsEdit(True)
        ).SetHTMLAttributes(New With {.Style = "margin-bottom: 15px;"})
End If
Next